package r5.powtorka2;

public class Manager extends Employee {

	private double bonus;

	public Manager(String name, double salary, int year, int month, int day) {
		super(name, salary, year, month, day);
		this.bonus = 0;
	}

	public double getBonus() {
		return bonus;
	}

	@Override
	public double getSalary() {
		return super.getSalary() + this.bonus;
	}

	public void setBonus(double bonus) {
		this.bonus = bonus;
	}

	@Override
	public String toString() {
		return super.toString() + " Manager [bonus=" + bonus + "]";
	}

}
